package com.sxhuayuan.parking.plugin.parking;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.sxhuayuan.parking.exception.SystemException;

public abstract class AbstractResult {

	protected Logger log = LoggerFactory.getLogger(getClass());

	public static String SUCCESS = "success";

	/** 响应是否成功 */
	public abstract boolean isSuccess();

	/** 业务是否成功 */
	public abstract boolean isResultSuccess();

	public abstract boolean checkSign(String key) throws SystemException;

	/**
	 * 获取错误信息
	 * 
	 * @return
	 */
	public abstract String getErrorMsg();
}
